package com.xbongbong.pro.workorder.pojo.dto;/*/*/

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 *
 * @author 魏荣杰
 * @date 2019/3/18 17:28
 * @since v1.0
 * @version v1.0
 */
@Setter
@Getter
@ToString
public class WorkOrderTemplateEnableDTO extends BaseDTO {

    private static final long serialVersionUID = 7776807487785528089L;

    /**
     * 模板id
     */
    @NotNull(message = "{dto.msg.workOrderTemplateEnable.id.NotNull}")
    @Range(message = "{dto.msg.workOrderTemplateEnable.id.Range}")
    private Long id;

    /**
     * 是否启用
     */
    @NotNull(message = "{dto.msg.workOrderTemplateEnable.isEnable.NotNull}")
    @DecimalMin(value = "0", message = "{dto.msg.workOrderTemplateEnable.isEnable.DecimalMin}")
    @DecimalMax(value = "1", message = "{dto.msg.workOrderTemplateEnable.isEnable.DecimalMax}")
    private Integer isEnable;
}
